﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using Janus.Windows.UI;
using VSSTQH.Properties;

namespace VSSTQH
{
    public class SettingApp
    {

        #region ReceiptPrintName
        public string ReceiptPrintName
        {
            get { return Settings.Default.ReceiptPrintName; }
            set
            {
                if (Settings.Default.ReceiptPrintName != value)
                {
                    Settings.Default.ReceiptPrintName = value;
                }
            }
        }
        #endregion

        #region ReportPrintName
        public string ReportPrintName
        {
            get { return Settings.Default.ReportPrintName; }
            set
            {
                if (Settings.Default.ReportPrintName != value)
                {
                    Settings.Default.ReportPrintName = value;
                }
            }
        }
        #endregion

        #region IsPreviewReportPrint
        public bool IsPreviewReportPrint
        {
            get { return Settings.Default.IsPreviewReportPrint; }
            set
            {
                if (Settings.Default.IsPreviewReportPrint != value)
                {
                    Settings.Default.IsPreviewReportPrint = value;
                }
            }
        }
        #endregion

        #region IsPreviewReceiptPrint
        public bool IsPreviewReceiptPrint
        {
            get { return Settings.Default.IsPreviewReceiptPrint; }
            set
            {
                if (Settings.Default.IsPreviewReceiptPrint != value)
                {
                    Settings.Default.IsPreviewReceiptPrint = value;
                }
            }
        }
        #endregion

        #region MarginLeft
        public int MarginLeft
        {
            get { return Settings.Default.MarginLeft; }
            set
            {
                if (Settings.Default.MarginLeft != value)
                {
                    Settings.Default.MarginLeft = value;
                }
            }
        }
        #endregion

        #region MarginTop
        public int MarginTop
        {
            get { return Settings.Default.MarginTop; }
            set
            {
                if (Settings.Default.MarginTop != value)
                {
                    Settings.Default.MarginTop = value;
                }
            }
        }
        #endregion

        #region MarginRight
        public int MarginRight
        {
            get { return Settings.Default.MarginRight; }
            set
            {
                if (Settings.Default.MarginRight != value)
                {
                    Settings.Default.MarginRight = value;
                }
            }
        }
        #endregion

        #region MarginBottom
        public int MarginBottom
        {
            get { return Settings.Default.MarginBottom; }
            set
            {
                if (Settings.Default.MarginBottom != value)
                {
                    Settings.Default.MarginBottom = value;
                }
            }
        }
        #endregion
    }
}
